<%@ page import="com.webamc.common.enums.Fields" %>
<%@ page import="com.webamc.common.enums.Params" %>
<%@ page import="com.webamc.model.PersonalInfo" %>
<%@ page import="com.webamc.model.UserInfo" %>
<%@ page import="com.webamc.util.CommonUtil" %>
<%@ page import="com.webamc.config.StaticData" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    PersonalInfo pi = (PersonalInfo) request.getAttribute(Params.PI);
    if (pi == null) {
        pi = new UserInfo();
    }
%>

<table class="browse-table">
    <tr>
        <td>Full Name</td>
        <td>
            <input name="<%=Fields.FULLNAME%>" value="<%=CommonUtil.out(pi.getFullName())%>" size="20"/>
        </td>
    </tr>
    <tr>
        <td>Birth date</td>
        <td>
            <input name="<%=Fields.DOB%>" value="<%=CommonUtil.getDateString(pi.getDob())%>" size="20"
                   onclick="initCal(this)"/>
        </td>
    </tr>
    <tr>
        <td>Gender</td>
        <td>
            <% request.setAttribute(Params.KEY, Fields.GENDER);
                request.setAttribute(Params.SEL, pi.getGender());
            %>
            <jsp:include page="combo-util.jsp"/>
        </td>
    </tr>
    <tr>
        <td>E-Mails</td>
        <td>
            <input name="<%=Fields.EMAIL%>" value="<%=CommonUtil.out(pi.getEmails())%>" size="20">
        </td>
    </tr>
    <tr>
        <td>Contact</td>
        <td>
            <input name="<%=Fields.CONTACT%>" value="<%=CommonUtil.out(pi.getContacts())%>" size="20">
        </td>
    </tr>

   <tr>
        <td>Mobile</td>
        <td>
            <input name="<%=Fields.MOBILE%>" value="<%=CommonUtil.out(pi.getMobile())%>" size="20">
        </td>
    </tr>

    <tr>
        <td>Description</td>
        <td>
            <textarea rows="2" cols="20" name="<%=Fields.DESC%>"><%=CommonUtil.out(pi.getDescription())%>
            </textarea>
        </td>
    </tr>
    <tr>
        <td>Address</td>
        <td>
            <textarea rows="2" cols="20" name="<%=Fields.ADDRESS%>"><%=CommonUtil.out(pi.getAddress())%>
            </textarea>
        </td>
    </tr>
    <tr>
        <td>City</td>
        <td>
            <% request.setAttribute(Params.KEY, Fields.CITY);
                request.setAttribute(Params.SEL, pi.getCity());
            %>
            <jsp:include page="combo-util.jsp"/>
        </td>
    </tr>
    <tr>
        <td>State</td>
        <td>
            <% request.setAttribute(Params.KEY, Fields.STATE);
                request.setAttribute(Params.SEL, pi.getState());
            %>
            <jsp:include page="combo-util.jsp"/>
        </td>
    </tr>
</table>
